export default {
    getQueryStringByName: function (name) {
        let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        let r = window.location.search.substr(1).match(reg);
        let context = "";
        if (r)
            context = r[2];
        reg = null;
        r = null;
        return context || "";
    }

};
